package model;

/**
 * 
 * @author Sonny Sandberg
 */
public class ProductFamily
{
    private int id;
    private String name;

    public ProductFamily(int id, String name)
    {
        this.id = id;
        this.name = name;
    }

    public ProductFamily()
    {
        id = 0;
        name = "";
    }
    
    public boolean isCompleted()
    {
        boolean done = false;
        
        if (id > 0 && name.length() > 0)
        {
            done = true;
        }
        
        return done;
    }

    public int getId()
    {
        return id;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }
}
